package com.jet.office.gate;

import com.jet.core.result.ResultJson;
import com.jet.office.service.IMerchantIndustryService;
import org.springframework.web.bind.annotation.*;

/**
 * @author dcl
 * @date 2023-02-06 15:31:53
 */
@RestController
@RequestMapping("/gate/office-edition/industry")
public class GateIndustryController {

    private final IMerchantIndustryService merchantIndustryService;

    public GateIndustryController(IMerchantIndustryService merchantIndustryService) {
        this.merchantIndustryService = merchantIndustryService;
    }

    /**
     * 获取商户激活的付费功能
     *
     * @return
     */
    @GetMapping
    @DeleteMapping
    public ResultJson merchantChargeAbility(@RequestHeader long merchantNo) {
        return ResultJson.ok(merchantIndustryService.merchantChargeAbility(merchantNo));
    }
}
